package request

type Shop struct {
	Id    int     `gorm:"type:int;comment:'ID'" json:"id"`
	Name  string  `gorm:"type:varchar(20);not null;comment:'商品名称'"`
	Price float64 `gorm:"type:decimal(10,2);not null;comment:'商品价格'"`
	Stock int     `gorm:"type:int;not null;comment:'商品库存'"`
}

type DisplayWindow struct {
	Id   int    `gorm:"type:int;comment:'ID'" json:"id"`
	Name string `gorm:"type:varchar(20);not null;comment:'橱窗分类名称'"`
}

type ShowcaseProducts struct {
	Id               int     `gorm:"type:int;comment:'ID'" json:"id"`
	Name             string  `gorm:"type:varchar(20);not null;comment:'橱窗商品名称'"`
	Sales            int     `gorm:"type:varchar(20);not null;comment:'橱窗商品销量'"`
	BelongingExperts string  `gorm:"type:varchar(20);not null;comment:'所属达人'"`
	DisplayWindowId  int     `gorm:"type:varchar(20);not null;comment:'橱窗分类ID'"`
	Price            float64 `gorm:"type:decimal(10,2);not null;comment:'橱窗商品价格'"`
}

type UserOrder struct {
	Id      int    `gorm:"type:int;comment:'ID'" json:"id"`
	OrderId int    `gorm:"type:int;not null;comment:'订单ID'"`
	ShopId  int    `gorm:"type:int;not null;comment:'商品ID'"`
	UserId  int    `gorm:"type:int;not null;comment:'用户ID'"`
	Time    string `gorm:"type:datetime;not null;comment:'下单时间'"`
	Status  int    `gorm:"type:int;not null;comment:'订单状态'"`
}
